package com.yanfan.dlt698_45.exception;

/**
 * @author oliver foo
 * @description
 * @date 2023/3/21 14:13
 */
public class DLT698_45TransportException extends Exception {
    private static final long serialVersionUID = -1;

    private final byte[] address;


    public DLT698_45TransportException() {
        this.address = new byte[]{};
    }


    public DLT698_45TransportException(byte[] address) {
        this.address = address;
    }


    public DLT698_45TransportException(String message, Throwable cause, byte[] address) {
        super(message, cause);
        this.address = address;
    }


    public DLT698_45TransportException(String message, byte[] address) {
        super(message);
        this.address = address;
    }


    public DLT698_45TransportException(String message) {
        super(message);
        this.address = new byte[]{};
    }


    public DLT698_45TransportException(Throwable cause) {
        super(cause);
        this.address = new byte[]{};
    }


    public DLT698_45TransportException(Throwable cause, byte[] address) {
        super(cause);
        this.address = address;
    }


    public byte[] getAddress() {
        return address;
    }
}
